<script setup lang="ts">
import { reactive } from 'vue';
import  { Account } from '../interface';
import { Login } from '../api';
import { AxiosResponse } from 'axios';
const form=reactive<Account>({
    username:'admin',
    password:'123456'
})
const login=async()=>{
    let res:AxiosResponse=await Login(form)
    console.log(res);
    
}
</script>

<template>
    <div>
        <input type="text" v-model="form.username">
        <br>
        <input type="text" v-model="form.password">
        <br>
       <button @click="login">登录</button>
    </div>
</template>

<style scoped>

</style>